when to use pathvariable and requestparam